package com.tuling.llmlangchain4j.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

@AiService(
        wiringMode = AiServiceWiringMode.EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider="chatMemoryProvider",
        tools = "calculateComputeTools"
)
public interface SeparateAsssisant {
    //系统提示词，设置角色塑造AI 助手角色，明确助手能力范围
//    @SystemMessage("你是我的好朋友，请用东北话回答问题, 今天是{{current_date}}")
//    @SystemMessage(fromResource = "my_promot_template.txt")
    @SystemMessage(fromResource = "xiaozhi-system-template.txt")
    String chat(@MemoryId String memoryId, @UserMessage String userMessage);


    @UserMessage("你是我的好朋友，请用杭州话回答问题,{{message}}")
    String chat2(@MemoryId String memoryId, @V("message") String userMessage);
}
